/**
 * Created by shc@lierda.com on 2017/2/22.
 */
var React = require('react');
var Meizhuang = require('../components/Meizhuang');

module.exports = React.createClass({
    getInitialState: function (){
        return {
            gjlist:[]
        }
    },
    componentDidMount: function () {

    },
    render: function () {
        var p = this;
        var gjlist = this.state.gjlist.map(function(o){
            var objs = JSON.stringify(o.picurl);
            var img_title = 'http://115.29.198.39:8080/upload/category/' + o.picurl;
            var pro_list = [];
            var prolist = o.goods_thumb;
            if (prolist != null) {
                var pro_list = prolist.split(",");
                localStorage.setItem("goodlist", JSON.stringify(pro_list));
            }
            return(
                <div key={o.id} className="pro-con">
                    <div className="guo_title">
                        <img src={img_title} />
                    </div>
                    <div className="gj-pro">
                       <Meizhuang></Meizhuang>
                    </div>
                </div>
            )
        });
        return (
            <div className="gj-container">
                {gjlist}
            </div>
        )
    }
});
